<style>

</style>

<h1 style="text-align: center;">Loaded Modules</h1>


<table>
<thead>
<tr>
    <th>Module Name</th>
    <th>ID</th>
    <th>Site Address</th>
    <th>Version</th>
    <th>Author</th>
    <th>RegEx Mask</th>
    <th>Support</th>
</tr>
</thead>
<tbody>
<?php
require_once 'system/globals.php';
$modules = registerModules('modules');



foreach($modules as $module) : ?>
    
    <tr>
        <td><?php echo $module['name']; ?></td>
        <td><?php echo $module['id'] ?></td>
        <td><?php echo $module['site'] ?></td>
        <td><?php echo $module['version'] ?></td>
        <td><?php echo $module['author'] ?></td>
        <td><?php echo $module['mask'] ?></td>
        <td>
                <?php
                    $meta = array();
                    if($module['meta'] & META_LABEL) $meta[] = 'Label';
                    if($module['meta'] & META_CATALOG) $meta[] = 'Catalog';
                    if($module['meta'] & META_RELEASE_DATE) $meta[] = 'Release Date';
                    if($module['meta'] & META_GENRES) $meta[] = 'Genres';
                    if($module['meta'] & META_REVIEW) $meta[] = 'Review';
                    if($module['meta'] & META_TRACK_BPM) $meta[] = 'Tracks BPM';
                ?>
            <?php echo implode(', ', $meta); ?>
        </td>
    </tr>
    <?php endforeach; ?>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="7">Total <?php echo count($modules) ?> modules found</td>
        </tr>
    </tfoot>
</table>